<?php namespace Home\Model;
use Hdphp\Model\Model;
class ListPage extends Model{
//指定表名				商品详细表
    protected $table = "shop_detail";
	
//	递归找子集
	public function getSon($data,$cid){
	    $temp = [];
		foreach ($data as $v) {
			if($v['pid'] == $cid){
				$temp[] = $v['cid'];
//				合并数组
				array_merge($temp,$this->getSon($data, $v['cid']));
			}
		}
		return $tmep;
	}

}